package com.richard.design.principle.singleresponsibility.method_example;

/**
 * @author Richard·Wang
 * @Date 2021/4/4 20:25
 * @Version 1.0
 */
public class Method {
    private void updateUserInfo(String userName, String address){
        userName = "geely";
        address = "beijing";

    }

    private void updateUserInfo(String userName, String... properties){
        userName = "geely";

    }

    private void updateUserName(String userName){
        userName = "geely";
    }

    private void updateUserAddress(String address){
        address = "beijing";
    }

    private void updateUserInfo(String userName, String address,boolean bool){
        if (bool){
            //todo something1
        }else {
            //todo something2
        }
        userName = "geely";
        address = "beijing";

    }

}
